package com.example.smartcity.Service;

import com.example.smartcity.Entity.User;
import com.example.smartcity.Entity.login;

import javax.servlet.http.HttpServletResponse;
import java.util.Map;
//import jakarta.servlet.http.HttpServletResponse;

public interface LoginAndRegisterService {
    String login(login log, HttpServletResponse response);
    String register(User user);
    String getUserAvatar(int uid);

    User getUserByUid(int uid);

    void updateUserInfo(Map<String,Object> map);
    void updateUserAvatar(int uid,String avatar);
    void updateUserPassword(Map<String,Object> map);
    void setNewCollection(int uid,int newsid);
}
